import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'key_think_tank_rank_state.dart';

class KeyThinkTankRankLogic extends GetxController with GetTickerProviderStateMixin{
  final KeyThinkTankRankState state = KeyThinkTankRankState();

  // 如果需要和 TabBarView 联动， TabBar 和 TabBarView 使用同一个 TabController 即可
  late TabController controller, controller1;

  @override
  void onInit() {
    super.onInit();
    controller = TabController(vsync: this, length: state.tabs.length);

    controller1 = TabController(vsync: this, length: state.tabss.length);

  }

  @override
  void onReady() {
    super.onReady();

  }

  @override
  void onClose() {
    super.onClose();
    controller.dispose();
    controller1.dispose();
  }
}
